package com.yin.myproject.netty.quickstart;

import com.yin.myproject.netty.ChildServerHandler;
import com.yin.myproject.netty.GenericServer;

/**
 * Netty时间服务器服务端
 * @author Eason
 * @create 2017-12-16 23:57
 **/
public class NettyTimeServer extends GenericServer{


    public NettyTimeServer(int port, ChildServerHandler childServerHandler) {
        super(port, childServerHandler);
    }

    public static void main(String[] args) throws Exception {
        new NettyTimeServer(8080, new ChildServerHandler(new NettyTimeClientHandler())).run();
    }
}
